<?php

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class SourcePicFrontRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' => ['web','authentication.auth'],
            'prefix' => 'front/source-pic','namespace'=>'Front'], function ($router) {
            $router->get('bulk-upload', [ 'uses' => 'SourcePicFrontController@bulkUploadSourcePic']);
            $router->get('all', [ 'uses' => 'SourcePicFrontController@getSourcePicList']);
            $router->get('update', [ 'uses' => 'SourcePicFrontController@updateSourcePicPage']);
            $router->post('update', [ 'uses' => 'SourcePicFrontController@updateSourcePic']);
            $router->post('delete', [ 'uses' => 'SourcePicFrontController@deleteSourcePic']);
            $router->post('update-price', [ 'uses' => 'SourcePicFrontController@updatePrice']);
            $router->post('bulk-upload', [ 'uses' => 'SourcePicFrontController@PostBulkUploadSourcePic']);
            $router->post('update-source-pic-name', [ 'uses' => 'SourcePicFrontController@updateSourcePicName']);
        });
    }
}